<Script Language = "JavaScript" >
<!--
function f_gridDblFunc(keyID)
{
	var cur_keyid = trselObj.f_get_select_key();
	cur_keyid = cur_keyid[0];
	if (cur_keyid=="") return;
	var dept_id = ""
	var trobj = trselObj.f_getSelectTR();
	//dept_id = trobj.cells("v_unit_stock_inventory.dept_key_id").innerText;
	dept_id = trselObj.f_getTDValueByKeyName(cur_keyid ,"v_unit_stock_inventory.dept_key_id");
	var where_sql = "unit_stock_inventory.material_id = ? and unit_stock_inventory.dept_key_id = ?";
	var where_type ="string;string";
	var where_value = cur_keyid +";" + dept_id;

	var contextPath = "<%=CONTEXTPATH%>";
	var funid = "unit_stock_detail_id";
	var href = contextPath + g_layoutForm + funid + "&pagetype=subgrid";
	href += "&where_sql=" + where_sql;
	href += "&where_value=" +where_value;
	href += "&where_type=" + where_type;
	//alert("href = " + href);
	parent.frames("frmformdata").document.location = href
}


//-->
</SCRIPT>

	
